﻿using Models.DTO.Api;
using System;
using Utility.Enums;

namespace Model.PageModel
{
    [Serializable]
    public class ActChannelCfgParms : BaseParmsDTO
    {
        /// 企业号
        /// </summary>
        public string CpnID { get; set; }
        /// <summary>
        /// 机构号
        /// </summary>
        public string OrgId { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
        public string Act { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string PyTypID { get; set; }
        /// <summary>
        /// 支付渠道
        /// </summary>
        public string PyChnlID { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? SDt { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EDt { get; set; }
        public string PyMchinId { get; set; }

        public Enum_TrialStt? TrialStt { get; set; }

        public Enum_ActPayType? ActTyp { get; set; }
        /// <summary>
        /// 活动名称
        /// </summary>
        public string ActName { get; set; }

        public string PrtActId { get; set; }

        public bool IsAll { get; set; } = false;
        public string BllNo { get; set; }

        public DateTime? Dt { get; set; }
    }

    public class AddActChannelCfgParms
    {
        /// <summary>
        /// 活动类型
        /// </summary>
        public Enum_ActPayType? ActTyp { get; set; }
        /// <summary>
        /// 活动名称
        /// </summary>
        public string ActName { get; set; }
        /// <summary>
        /// 活动编号
        /// </summary>
        public string ActID { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        public DateTime? ActStdt { get; set; }
        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime? ActEdt { get; set; }
        /// <summary>
        /// 前置机主键号
        /// </summary>
        public string PyMchinId { get; set; }
        /// <summary>
        /// 活动父级id
        /// </summary>
        public string PrtActId { get; set; }
        /// <summary>
        /// 活动规则类型
        /// </summary>
        public int RulTyp { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string BllNo { get; set; }
        /// <summary>
        /// 单品上传信息
        /// </summary>
        public string Filedata { get; set; }
    }
}
